package com.fei.BYSJ.service;

import com.fei.BYSJ.entity.Order;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderService {


    int countOrderByPeoele(int userId);

    int releaseOrder(Order order);
    List<Order> findAllUnFinishOrder(int userId);

    List<Order> findAll(int userId);
    List<Order> findAcceptOrders(int userId);
    List<Order> findFinishOrders(int userId);

    List<Order> findUnAcceptOrder();

    List<Order> releaseOrderlists(Integer userid);

    Order findOrderById(int id);

    int updateOrder(Order o);

    int cancelOrderById(int id);

    List<Order> findAllOrders(Map<String,Object> params);

    List<Order> findAllComplainOrder(Integer userid);

    List<Order> totalfindAllOrders(Map<String, Object> params);

    int countOrderByDay(Date time);

    Order findOrderByOrderNum(int parseInt);
}
